package com.qm.console.dao.model;

import lombok.Data;

import java.util.Date;

@Data
public class UserActionDO {
    private Integer id;

    private String appChannel;

    private Integer accountId;

    private Date dateTime;

    private String deviceId;

    private Integer gender;

    private String logSeq;

    private String action;

    private Date targetDate;

    private String rowData;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAppChannel() {
        return appChannel;
    }

    public void setAppChannel(String appChannel) {
        this.appChannel = appChannel == null ? null : appChannel.trim();
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getLogSeq() {
        return logSeq;
    }

    public void setLogSeq(String logSeq) {
        this.logSeq = logSeq == null ? null : logSeq.trim();
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action == null ? null : action.trim();
    }

    public Date getTargetDate() {
        return targetDate;
    }

    public void setTargetDate(Date targetDate) {
        this.targetDate = targetDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", appChannel=").append(appChannel);
        sb.append(", accountId=").append(accountId);
        sb.append(", dateTime=").append(dateTime);
        sb.append(", deviceId=").append(deviceId);
        sb.append(", gender=").append(gender);
        sb.append(", logSeq=").append(logSeq);
        sb.append(", action=").append(action);
        sb.append(", targetDate=").append(targetDate);
        sb.append(", rowData=").append(rowData);
        sb.append("]");
        return sb.toString();
    }
}
